package com.ssyc.common.utils;

import android.graphics.Paint;
import android.widget.TextView;

/**
 * 通用ViewUtils
 * 给TextView添加下划线的工具类
 * Created by Administrator on 2017/12/13 0013.
 */

public class SuperViewUtils {
    /**
     * 设置TextView 下划线效果
     *
     * @param tv
     */
    public static void setUnderline(TextView tv) {

        tv.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);

    }
}
